<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
    <title>登录界面</title>
    <script src='<spring:url value="/webjars/jquery/1.11.1/jquery.min.js"/>'></script>
    <link href="<%=request.getContextPath() %>/resources/css/login.css" rel="stylesheet">
    <link href="<%=request.getContextPath() %>/resources/css/jquery.inputbox.css" rel="stylesheet">
</head>
<body>
<div class="login">
    <img src="<%=request.getContextPath() %>/resources/pic/03.png"/>
</div>
<div class="form">
    <div id="display" style="text-align: center; color: red;margin-top: 10px">${error}
    </div>
    <form action="login" id="f1" method="post">
        <input type="text" id="user" name="name" class="username"><br/>
        <input type="password" id="pwd" name="password" class="password"/><br/>

        <div class="remember">
            <div class="cbt" name="check" type="checkbox" val="3"></div>
            <span class="f2">记住密码</span>
        </div>
        <div class="user">
            <select class="select" name="type" id="type">
                <option value="0"
                        <c:if test="${type ==0}">
                            selected="selected"
                        </c:if>>管理员
                </option>
                <option value="1"
                        <c:if test="${type ==1}">
                            selected="selected"
                        </c:if>>值班员
                </option>
            </select>
        </div>
        <input type="button" id="bt1" value="登录" class="submit"/>
    </form>
</div>
<div class="footer">
    Copyright © 2016 核心网关监控系统
</div>
</body>
<script src="<%=request.getContextPath() %>/resources/js/common/jquery.inputbox.js"></script>
<script src="<%=request.getContextPath() %>/resources/js/login/login.js"></script>
</html>
